﻿using Common;
using Common.Result;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace WebApi.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class ToolsController : ControllerBase
    {
        [HttpGet]
        public IActionResult InitEntitys()
        {
            DbContext.InitEntitys();
            return Ok();
        }
        [HttpGet]
        public IActionResult InitDataBase()
        {
            DbContext.InitDataBase();
            return Ok();
        }
    }
}
